<?php $timestamp=1333699439; echo gmdate("Y-m-d\TH:i:s\Z", $timestamp); ?>
$currentTime = DateTime::createFromFormat( 'U', $timestamp );